<%@page import="Model.Purchase.PurchaseListView"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="Model.My.PurchaseResultListView"%>
<%@page import="RssEasy.Core.HttpRequestHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
CookieHelper cookie=new CookieHelper(request, response);
HttpRequestHelper hrh=new HttpRequestHelper(pageContext).request();
PurchaseResultListView prlv = new PurchaseResultListView(pageContext);
PurchaseListView plv = new PurchaseListView(pageContext);
String types=hrh.get("types");
if(types.equals("1")){
prlv.pagesize=100000;
prlv.select().where("shijian>? and shijian<? and myid=? and typid=1",hrh.get("start"),hrh.get("endt"),cookie.Get("myid")).get_page_desc("shijian");
out.print(prlv.toKeyValue(false));  
}
if(types.equals("2")){
plv.pagesize=100000;
plv.select().where("shijian>? and shijian<? and myid=? and (state=? or state=?) and typid=1",hrh.get("start"),hrh.get("endt"),cookie.Get("myid"),hrh.get("state1"),hrh.get("state2")).get_page_desc("shijian");
out.print(plv.toKeyValue(false));   
}

%>
